package org.jmat.domain.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Column;

/**
 * This class represents a Dog.
 * @author Mathieu Chatelain
 */

@Entity(name="Dog")
@DiscriminatorValue("DOG")
@AttributeOverride(
		name="id",
		column=@Column(name="id_dog"))
public class Dog extends Animal {

	private static final long serialVersionUID = -6471663308866311036L;
	private DogRace race;
	
	public Dog(){
	}


	@Enumerated(EnumType.STRING)
	public DogRace getRace() {
		return race;
	}
	
	public void setRace(DogRace race) {
		this.race = race;
	}

	
	
}
